<%@ page language="java" import="java.util.*" pageEncoding="utf8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>美食天地</title>
	</head>

	<body>
		<table>
			<tr>
				<td>
				
					<table>
				
						<tr>
						<td><a href="show_getSpecialFoodTypeList.action"> 特色美味</a></td>
							<c:forEach var="specialFood" items="${specialFoodList}" varStatus ="stat">
							<td>
							<a href="show_getFoodDetail.action?foodId=${specialFood.foodId}">
								<table>
								<c:if test="${stat.count%2==1}">
								<tr><td>
									<img alt="fuck" src="${website}resource/${specialFood.imageUrl}" height="150" width="250" />
								</td></tr>
								</c:if> 
								<tr>
								<td>
									
										${specialFood.name} 
								</td>
								</tr>
								<c:if test="${stat.count%2==0}">
								<tr><td>
									<img alt="fuck" src="${website}resource/${specialFood.imageUrl}" height="150" width="250"/>
								</td></tr>
								</c:if> 
								</table>
								</a>
								</td>
							</c:forEach>
						</tr>
					</table>

				</td>
			</tr>
			<tr>
				<td><a href="show_getSnackeOrTechanPage.action?foodType=6">小吃</a>
					<table>
						<tr>
							<c:forEach var="xiaochi" items="${xiaochiList}">
								<td>
									<a href="show_getFoodDetail.action?foodId=${xiaochi.foodId}">
										${xiaochi.name} </a>
								</td>
							</c:forEach>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td><a href="show_getDrinkAndTeaPage.action">美酒香茶</a>
					<table>
						<tr>
								<td>
							<c:forEach var="drinkAndTea" items="${drinkAndTeaList}">
									<a href="show_getFoodDetail.action?foodId=${drinkAndTea.foodId}">
										${drinkAndTea.name} </a><br/>
							</c:forEach>
								</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td><a href="show_getSnackeOrTechanPage.action?foodType=9">特产食品</a>
					<table>
						<tr>
							<c:forEach var="techan" items="${techanList}">
								<td>
									<a href="show_getFoodDetail.action?foodId=${techan.foodId}">
										${techan.name} </a>
								</td>
							</c:forEach>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</body>
</html>
